package com.basin.common.satoken.annotation;

import cn.dev33.satoken.filter.SaFilterAuthStrategy;

import java.lang.annotation.*;

/**
 * @author: Sam ZHONG | sammy1997@aliyun.com
 * @date: 2025/5/18 19:32
 * @description:
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface IgnoreGlobalAuth {
    Class<? extends SaFilterAuthStrategy> authStrategy() default DefaultSaFilterAuthStrategy.class;

    class DefaultSaFilterAuthStrategy implements SaFilterAuthStrategy {
        @Override
        public void run(Object obj) {
            // 默认不处理
        }
    }
}
